using System;
using System.Collections.Generic;
using System.Text;

using KNCApp.Business.Models;
using KNCApp.Business.Interfaces;

namespace KNCApp.DataSource
{
    interface IDataSource
    {
        bool InitConnection();
        void CloseConnection();
        bool CreateArchConnection(string dbPath);
        void RestoreDefConnection();
        int GetNextRecid(string genName);

        bool AddPilot(Pilot pilot);
        bool AddTests(List<TestPilot> tests);
        bool AddResult(Result res);

        List<Pilot> SelectPilots(SearchCriteria sc);
        List<TestPilot> SelectTests(SearchCriteria sc);
        List<Result> SelectResults(TestPilot tp);
    }
}
